/*-------------------------------------------------------------------------

***************** Modification History ***********************************
* @doc		COUNTER
* @module	cnt.h
* Header file for counter functions.
*
* Product	: SoftPay 2000 (Global Payment Methodology).
* Developer	: Miami
* Notes		:
* Log		: /SoftPay/SPK2SIM/Source/Include/cnt.h
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/


#ifndef VSCNT_H
#define VSCNT_H

#ifndef COUNTER_ARRAY_SIZE
#define COUNTER_ARRAY_SIZE				36
#endif
#ifndef COUNTER_LABEL_SIZE
#define COUNTER_LABEL_SIZE				10
#endif

typedef struct TagCNT_REC
{
	char szCounterName[COUNTER_LABEL_SIZE + 1];
	long	  lnTotals[COUNTER_ARRAY_SIZE    ];
}
	CNT_REC;

#define SIZE_CNT_REC	sizeof(CNT_REC)

#ifndef VSCNT_C
/* --------------------------- External Prototypes ------------------------ */

extern int inLoadCNTRec(int, CNT_REC *);
extern int inSaveCNTRec(int, CNT_REC *);

extern int inGetNumberOfCNTRecs(void);

/* ------------------------------------------------------------------------ */
#else
/* --------------------------- Local Prototypes --------------------------- */

int inLoadCNTRec(int, CNT_REC *);
int inSaveCNTRec(int, CNT_REC *);

int	inGetNumberOfCNTRecs(void);

/* ------------------------------------------------------------------------ */
#endif	/* VSCNT_C */
#endif	/* VSCNT_H */
